package com.daidai.Impl;

import com.daidai.BookDao;
import com.daidai.BookService;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class BookServiceImpl implements BookService {
    private BookDao bookDao;

    private int id;
    private String name;
    private Set set;
    private List list;
    private Map map;

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSet(Set set) {
        this.set = set;
    }

    public void setList(List list) {
        this.list = list;
    }

    public void setMap(Map map) {
        this.map = map;
    }

    @Override
    public void startSrevice() {
        System.out.println("bookservice start...");
        bookDao.bookDaoAdd();
        System.out.println(this.id + this.name + this.list + this.set + this.map);
    }

}
